package edu.zut.hb.software.capiturevictor.maintain.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import edu.zut.hb.software.capiturevictor.base.service.impl.GenericManagerImpl;
import edu.zut.hb.software.capiturevictor.maintain.dao.ResponseDao;
import edu.zut.hb.software.capiturevictor.maintain.domain.Response;
import edu.zut.hb.software.capiturevictor.maintain.service.ResponseManager;
@Component
public class ResponseManagerImpl extends GenericManagerImpl<Response, Long> implements ResponseManager {

	ResponseDao responseDao;

	@Override
    public List<Response> findByInformation(String informationId) {
        List<Response> all = new ArrayList<Response>();
        for (int i = 0; i < 10; i++) {
            Response response = new Response();
            all.add(response);
        }
        return all;
    }

    @Autowired
    public void setResponseDao(ResponseDao responseDao) {
        this.responseDao = responseDao;
        this.dao = this.responseDao;
    }

}
